home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Leser 19 / Amiga Plus Leser CD 19.iso / Tools / MorphOS / cvs-1.11.2 / README.AMIGA < prev   
Encoding:
Text File  |  2002-11-18  |  16.3 KB  |  356 lines

  1. CVS 1.11.2 AmigaOS/MorphOS port (09 November 2002)
  2. ==================================================
  3.  
  4. Introduction
  5. ------------
  6. This is a somewhat rough port of GNU CVS 1.11.2, a version control system,
  7. which allows you to keep old versions of files (usually source code), keep a
  8. log of who, when, and why changes occurred, etc., like RCS or SCCS. It handles
  9. multiple developers, multiple directories, triggers to enable/log/control
  10. various operations, and can work over a wide area network. The following tasks
  11. are not included; they can be done in conjunction with CVS but will tend to
  12. require some script-writing and software other than CVS: bug-tracking, build
  13. management (that is, make and make-like tools), and automated testing. (Quoted
  14. from the CVS documentation.)
  15.  
  16. I call this a 'rough port' since it is not as polished as, say Heinz Wrobel's
  17. excellent 'RCS' port. It does what it needs to do, but a few features are
  18. sorely lacking, such as full support for Amiga file protection bits. On the other
  19. hand, however, you get everything, and perhaps more, you got with the previous
  20. Amiga ports of CVS: this port does not require 'ixemul.library' to work and it
  21. does not require an RCS installation because it is completely self contained.
  22. The port would also probably win a price as the largest 'pure' executable; it
  23. can be made resident.
  24.  
  25.  
  26. What's in this package?
  27. -----------------------
  28. This distribution contains the Amiga port, the Amiga specific source code and
  29. most of the original GNU CVS 1.11.2 distribution. 'Most' in this case means
  30. that only the original source code has been omitted in order to keep the
  31. distribution archive small; the documentation and support files are all
  32. provided. The original source code can be downloaded from the Internet at
  33. 'ftp://ftp.cvshome.org/pub/cvs-1.11.2/cvs-1.11.2.tar.gz'. I have added two
  34. more files which are converted from the original Unix man pages, namely
  35. 'cvs.1.man' and 'cvs.5.man' whose sources can be found in the
  36. 'cvs-1.11.2/man' directory.
  37.  
  38.  
  39. Installation; the easy part
  40. ---------------------------
  41. Almost everything you need to get CVS up and running is contained in the
  42. archive which also includes the 'README.AMIGA' file you are currently reading.
  43. And that means the 'cvs' executable. You will also need a working
  44. 'queue-handler' (the one that ships with Workbench 3.1 and beyond is,
  45. unfortunately, broken) which can be found on Aminet (you can find the archive
  46. at 'http://us.aminet.net/pub/aminet/util/sys/HWGQueue.lha'). A TCP/IP stack
  47. like Miami or AmiTCP is supported but not strictly required: you can perfectly
  48. well keep your CVS repository on your local machine. Since CVS may ask you to
  49. edit the log entries associated with the files to store, you may want to
  50. configure the 'EDITOR' environment variable. Last, but not least, you must set
  51. up an environment variable which allows CVS to associate you with the changes
  52. you made; this should be the 'USER', 'LOGUSER' or 'USERNAME' variable.
  53.  
  54. Most importantly, this port requires Kickstart 2.04 or higher.
  55.  
  56. Here is how you could set up CVS on your machine. We start by creating two
  57. drawers on the 'Work:' volume:
  58.  
  59.    MakeDir Work:CVS-Root
  60.    MakeDir Work:CVS-Home
  61.  
  62. Next, we add two lines to the 'S:User-Startup' file:
  63.  
  64.    Assign CVSHOME: Work:CVS-Home
  65.    Path CVSHOME: Add
  66.  
  67. The CVS program will need to be copied:
  68.  
  69.    Copy cvs Work:CVS-Home CLONE
  70.  
  71. And the path to the CVS repository needs to be set:
  72.  
  73.    SetEnv CVSROOT :local:Work:CVS-Root
  74.    Copy ENV:CVSROOT ENVARC:
  75.  
  76. Two environment variables need to be set up. Most importantly, CVS will need
  77. your ID to write it into the log and revision files it creates. The Amiga port
  78. will query three environment variables for that information, in the following
  79. order: 'USER', 'LOGUSER' and 'USERNAME'. This means if the variable 'USER' is
  80. not set, it will proceed to check whether 'LOGUSER' is set, and so forth. You
  81. may have already configured these variables, but if you haven't, I suggest you
  82. set up the 'LOGUSER' variable, like this:
  83.  
  84.    SetEnv LOGUSER <Your ID here>
  85.    Copy ENV:LOGUSER ENVARC:
  86.  
  87. Note that <Your ID here> should be replaced by a mnemonic, nick name or short
  88. name that must not contain any blank space characters. This means for example
  89. that "Fred Flintstone" will not work, but "Fred_Flintstone" will.
  90.  
  91. You may want to configure the 'EDITOR' environment variable to invoke your
  92. preferred text editor when CVS requests that log messages are added for an
  93. update. If this variable is not set, CVS will default to invoke the 'Ed'
  94. editor. This can be problematic if you have installed 'CygnusEd' whose 'Ed'
  95. program detaches from the Shell that invoked it. When CVS invokes the editor,
  96. it expects it to return only when the user has finished editing the respective
  97. file. Here is an example configuration for CygnusEd:
  98.  
  99.    SetEnv EDITOR Ed -keepio
  100.  
  101. And here is one for TurboText:
  102.  
  103.    SetEnv EDITOR TTX WAIT
  104.  
  105. Don't forget to save the environment variable setting to make it permanent,
  106. like this:
  107.  
  108.    Copy ENV:EDITOR ENVARC:
  109.  
  110. Finally, install the 'queue-handler' from Aminet and reboot your machine. When
  111. the system is again up and running, initialize the CVS repository like this:
  112.  
  113.    cvs init
  114.  
  115. And that's all. Well, maybe you want to add a few default options to the
  116. configuration file CVS reads upon startup. That file should be placed in the
  117. 'CVSHOME:' directory and called '.cvsrc'.
  118.  
  119.  
  120. Networked operation and SSH
  121. ---------------------------
  122. This CVS port includes built-in remote shell (rsh) and secure shell (ssh)
  123. client code, which allows you to exchange files with networked, non-local CVS
  124. repositories. To use a remote repository, you will need to change the name of
  125. the CVS root directory. For a local repository, you would use the following
  126. commands to set it up, like this:
  127.  
  128.    SetEnv CVSROOT :local:Work:CVS-Root
  129.    Copy ENV:CVSROOT ENVARC:
  130.  
  131. But if the repository were on a remote machine, you would use something like
  132. this:
  133.  
  134.    SetEnv CVSROOT :server:login@host:/usr/local/cvsroot
  135.    Copy ENV:CVSROOT ENVARC:
  136.  
  137. In that example, you would replace 'login' with your account name on the
  138. networked machine called 'host'; the '/usr/local/cvsroot' refers to the fully
  139. qualified name of the CVS root directory. Note that for this to work, you need
  140. to have a shell login account on the remote machine, and that machine must be
  141. configured to allow for remote shell login. Because the remote shell login is
  142. rather risky and insecure, most sites will have it disabled. Bad luck, but
  143. there is an alternative: secure shell. This feature allows you to connect to a
  144. remote repository as with a remote shell login, except that the connection is
  145. made in a much more secure fashion using encrypted data channels. This process
  146. requires that you have a login password handy, for which the CVS port will
  147. prompt you before it connects to the remote. To activate the secure shell
  148. feature, you would set an environment variable, like this:
  149.  
  150.    SetEnv CVS_RSH ssh
  151.  
  152. This will cause the built-in secure shell (ssh) client to be used in place of
  153. the remote shell (rsh) client. The secure shell client implementation is a
  154. stripped down, simplified version of the real thing, the full-blown version,
  155. which supports more different and more secure encryption algorithms. What this
  156. version can do is just about the bare minimum, which means that it supports
  157. only two block cipher algorithms ('Triple DES' and 'Blowfish') and that the
  158. initial public key exchange is not as fast as it could be. It supports only
  159. version 1.5 of the secure shell protocol.
  160.  
  161. By default, the ssh client will resort to 'Triple DES' for encryption and
  162. decryption, which is not particularly fast. To choose the 'Blowfish' algorithm
  163. instead (which runs faster than 'Triple DES'), use the following environment
  164. variable:
  165.  
  166.    SetEnv CVS_SSH_CIPHER blowfish
  167.  
  168. Not all secure shell server implementations support the 'Blowfish' algorithm,
  169. but all servers are required to support 'Triple DES'. Thus, if you cannot
  170. connect to a server which aborts the protocol negotiation, it may be that it
  171. does not understand the choice of the encryption algorithm.
  172.  
  173. CAUTION: The majority of the CVS documentation I know recommends to use the
  174.          keyword ':ext:' in place of ':server:' for communicating with a
  175.          networked CVS installation -- this will *NOT* work with this Amiga
  176.          port. What does work are the built-in rsh and ssh clients, and these
  177.          require that you use the ':server:' keyword when specifying the name
  178.          of the CVS root directory. Therefore the :ext: method is disabled
  179.          in this port!
  180.  
  181. By default, the SSH client will attempt to connect to the server on port 22.
  182. This is not always desirable, especially for custom SSH configurations. You
  183. can override this default choice of the port number using yet another
  184. environment variable, like this:
  185.  
  186.    SetEnv CVS_SSH_PORT 33194
  187.  
  188. By default the built-in ssh client will prompt you to enter the password to
  189. authenticate with the remote server. By public request, a special feature was
  190. added to this CVS port which will cause server name, login and password to be
  191. stored in a local file for use with ssh.
  192.  
  193. If you want to use this feature you have would set up the following
  194. environment variable:
  195.  
  196.     SetEnv CVS_SSH_PASSFILE CVSHOME:.sshpass
  197.  
  198. We do not recommend that you use this feature because it compromises system
  199. security. You may want to use this feature only if you do not care about
  200. security and are prepared to face the consequences. We suggest that you store
  201. the ssh password file in a place different from the one you keep the passwords
  202. used by the :pserver: access method in. Do not mix the two files; undefined
  203. CVS behaviour may result.
  204.  
  205. Last but not least, a word on data compression. The SSH specification allows
  206. for data to be compressed before it is encrypted. This functionality is not
  207. implemented in the reduced SSH implementation which is part of this Amiga CVS
  208. port. This sounds like a disadvantage, but it need not to be. In fact, CVS can
  209. use data compression for data exchange, and the SSH layer on top of it could
  210. not have compressed this data any further. That's entropy for you...
  211.  
  212.  
  213. Usage
  214. -----
  215. I personally found the default CVS documentation to be rather confusing. If
  216. you don't know rather well what CVS is good for, then the examples, the
  217. terminology, all this doesn't seem to make great sense. My introduction to CVS
  218. followed with Karl Fogel's book "Open Source Development with CVS" which
  219. describes in compact form what CVS is and how it may be used. I suggest that
  220. you consult the book (portions of which are available from 'www.coriolis.com')
  221. and/or the CVS documentation (which has been included with this archive in the
  222. 'cvs-1.11.2/doc' drawer) for hints and ideas on how to use the program. I would
  223. definitely not recommend that you spend any money on the CVS pocket reference
  224. manual written by Gregor N. Purdy, published by O'Reilly until *after* you
  225. have read an introductory book like Karl Fogel's. By its very nature, even a
  226. good pocket reference manual can only refresh your memory on concepts you have
  227. learned before -- if there is nothing to be refreshed in the first place, it
  228. will not be of any help to you.
  229.  
  230. What many people fail to realize and what keeps them from using CVS in place
  231. of the revision control system they have used for years is that you do not
  232. need a networked CVS repository in order to use CVS. A local repository will
  233. do. In fact, I switched over most of my current software development projects
  234. to use a single local repository after I realized that CVS does much better
  235. what I had previously used RCS for.
  236.  
  237. Further documentation and information CVS can be found on the CVS home page:
  238.  
  239.    http://www.cvshome.org/
  240.  
  241. For a good tutorial have a look at:
  242.  
  243.    http://cvsbook.red-bean.com/cvsbook.html
  244.  
  245.  
  246. Notes on the implementation
  247. ---------------------------
  248. The Amiga port implements only the client side of the CVS system. This means
  249. that you can check out projects on remote servers but your local Amiga cannot
  250. be a CVS server itself. This feature was omitted deliberately since I could
  251. not find a safe and useful way to make CVS server mode work on the Amiga.
  252. AmigaOS is not a server operating system and shoehorning the code to make it
  253. work somehow would not have helped. If you need a CVS server, try a dedicated
  254. solution using, for example, 'NetBSD'. The Amiga port can communicate with the
  255. server using the remote shell (rsh) and secure shell (ssh) protocols, and I
  256. have verified that the process works reasonably well with, for example, the
  257. public 'Samba' CVS repository.
  258.  
  259. CVS does not have a very sophisticated porting layer. Its file name semantics
  260. all stem from the Unix world and the 'OS/2', 'VMS' and 'Windows NT' ports
  261. merely resort to flipping slashes in file names, if necessary, when it comes
  262. to make a name fit the local system's semantics. I had to find a similar way
  263. to make the semantics work on the Amiga. What I did was to add a translation
  264. service in the Amiga specific code which knows how to translate names like '.'
  265. or '..'. But that's where it ends. Any more sophisticated naming schemes like
  266. 'foo/.././bar' may fail to translate properly. But then, those complex
  267. patterns should be pretty rare anyway.
  268.  
  269. Unlike Heinz Wrobel's excellent 'RCS' port, this CVS port does not preserve
  270. Amiga file protection bits for files checked in. When you check in a project
  271. and check it out again, all file and directory protection bits will default to
  272. 'rwed', losing the 'archived', 'pure' and 'script' bits.
  273.  
  274. The Amiga port will expand wild card patterns for file and directory names
  275. specified as command line parameters, such as "#?.c". The wild card pattern
  276. syntax is that of AmigaDOS. It is *not* the syntax of the standard regular
  277. expressions other GNU tools will use.
  278.  
  279. You can access remote CVS repositories by means of a properly configured
  280. TCP/IP stack. This port requires that the stack complies to the AmiTCP V3 API
  281. definition, which all modern Amiga TCP/IP stacks do. It does not work with the
  282. INet-225 TCP/IP stack, though.
  283.  
  284. When CVS resorts to calling external programs, a working 'PIPE:' device is
  285. required, which is not yet part of the AmigaOS Workbench distribution. Do not
  286. underestimate this. The program will fail or behave erratically without a
  287. working 'PIPE:' device. It is strongly recommended to download a working
  288. 'queue-handler', such as from Aminet.
  289.  
  290. The source code for the Amiga port is included in this distribution. All you
  291. need to know before you can recompile this CVS port is described in the file
  292. 'README.SRC' which you can find in the 'source' directory.
  293.  
  294. This is a 'single user' CVS port. There is just one single home directory
  295. (referred to as 'CVSHOME:') and your login name and ID are assumed to be the
  296. same (set in the 'USER', 'LOGUSER' or 'USERNAME' environment variables).
  297.  
  298. There is no 'cvsbug' shell script or program included with this port.
  299.  
  300.  
  301. Known problems and issues
  302. -------------------------
  303.  
  304. 1) Problems with time zones
  305.  
  306. This port completely ignores the "ENVARC:TZ" time zone variable and uses your
  307. locale time zone configuration instead. While this should normally be the most
  308. transparent solution, daylight savings time is not taken into account. You may
  309. have to change your locale preferences accordingly.
  310.  
  311. 2) File names longer than supported by the file system
  312.  
  313. Another issue that can produce problems while working with CVS on the Amiga
  314. involves remote repositories (:pserver: or :server: method) which contain
  315. files and directories whose names are longer than the Amiga file system allows
  316. for. These names will be truncated when the respective files and directories
  317. are checked out, which has the unpleasant effect that you may not be able to
  318. check the files in again.
  319.  
  320. 3) .cvspass error message with :pserver:
  321.  
  322. If you use the :pserver: method with CVS a message like the following can
  323. appear:
  324.  
  325. --- cut here ---
  326. DH0: > cvs login
  327. Logging in to :pserver:damato@linux:2401/data/cvsroot/amiga
  328. CVS password:
  329. cvs login: failed to open CVSHOME:.cvspass for reading: No such file or directory
  330. cvs [login aborted]: fatal error: exiting
  331. --- cut here ---
  332.  
  333. The solution for this problem is quite simple. Just create an empty ".cvspass"
  334. file in your CVSHOME: directory (e.g. "Echo >CVSHOME:.cvspass noline") and
  335. next time CVS will use this file to store the passwords. This is normal CVS
  336. behaviour like in other ports.
  337.  
  338.  
  339. Contacting the authors
  340. ----------------------
  341. If you have any further questions on this port, feel free to contact us:
  342.  
  343.    Olaf Barthel
  344.    Gneisenaustr. 43
  345.    D-31275 Lehrte
  346.    Federal Republic of Germany
  347.  
  348.    olsen@sourcery.han.de
  349.  
  350.    Jens Langner
  351.    Lannerstrasse 1
  352.    D-01219 Dresden
  353.    Federal Republic of Germany
  354.  
  355.    Jens.Langner@light-speed.de
  356.